import json

from curl_cffi import requests
from lxml import etree

url = 'https://zz.ganji.com/zhengquanfenxi/pn2/?pid=887070685406658560'
response = requests.get(url)
tree = etree.HTML(response.text)
res = tree.xpath('/html/body/script[1]')
ress = res[0].text[25:]
items = json.loads(ress)
print(items)
